package com.evildog.workspace.common.exception;


import com.evildog.workspace.common.enums.CommonCustomExceptionDesc;
import com.evildog.workspace.common.intefaces.ICustomExceptionDesc;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.http.HttpStatus;

/**
 * 未认证 error
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class UnAuthException extends CommonException {

    private static final long serialVersionUID = 6801519635531297845L;

    public UnAuthException() {
        this(CommonCustomExceptionDesc.UNAUTHORIZED);
    }

    public UnAuthException(ICustomExceptionDesc responseStatus){
        super(responseStatus, HttpStatus.UNAUTHORIZED);
    }

}
